VERSION 1.0 CLASS
BEGIN
  MultiUse = -1  'True
  Persistable = 0  'NotPersistable
  DataBindingBehavior = 0  'vbNone
  DataSourceBehavior  = 0  'vbNone
  MTSTransactionMode  = 0  'NotAnMTSObject
END
Attribute VB_Name = "MethodErrorHandler"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = True
Attribute VB_PredeclaredId = False
Attribute VB_Exposed = True
Option Explicit

Private mForward As Object
Private mNoError As Object
Private mHandler As Object

Public Sub init(forward As Object, noError As Object, handler As Object)
Set mForward = forward
Set mNoError = noError
Set mHandler = handler
End Sub

Public Sub forward()
On Error GoTo handler
mForward.forward
mNoError.noError
Exit Sub
handler:
mHandler.handleError
End Sub
